<template>
  <div class="login">
    <div class="login-tit"></div>
    <div class="login-con">
      <div v-if="!isWeixin">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="账号密码登录" name="first" class="account-border">
            <el-form
              ref="loginForm"
              :model="loginForm"
              :rules="loginRules"
              class="login-form"
            >
              <el-form-item prop="username">
                <el-input
                  v-model.trim="loginForm.username"
                  type="text"
                  auto-complete="off"
                  placeholder="请输入账号/手机号"
                  size="medium"
                >
                  <div class="userbox" slot="prefix">
                    <img
                      class="user-icon"
                      src="@/assets/images/user.png"
                      alt=""
                    />
                    <p>账号</p>
                  </div>
                </el-input>
              </el-form-item>
              <el-form-item prop="password">
                <el-input
                  v-model.trim="loginForm.password"
                  type="password"
                  auto-complete="off"
                  placeholder="请输入密码"
                  @keyup.enter.native="handleLogin"
                  size="medium"
                >
                  <template slot="prefix">
                    <div class="userbox">
                      <img
                        class="user-icon"
                        src="@/assets/images/pwd.png"
                        alt=""
                      />
                      <p>密码</p>
                    </div>
                  </template>
                </el-input>
                <div
                  class="el-form_error"
                  v-if="loginForm.password && msg"
                >
                  {{ msg }}
                </div>
              </el-form-item>
              <el-checkbox
                v-model="loginForm.rememberMe"
                style="margin: 0px 0px 25px 0px"
                >记住密码</el-checkbox
              >
              <el-form-item style="width: 100%" class="loginBtn">
                <el-button
                  :loading="loading"
                  size="medium"
                  type="primary"
                  style="width: 100%"
                  @click.native.prevent="handleLogin"
                >
                  <span v-if="!loading">登 录</span>
                  <span v-else>登 录 中...</span>
                </el-button>
              </el-form-item>
            </el-form>
          </el-tab-pane>
          <el-tab-pane label="手机免密登录" name="second">
            <MobileLogin :tab="activeName"></MobileLogin>
          </el-tab-pane>
        </el-tabs>
        <div class="others">
          <div
            :class="
              activeName == 'first' ? 'others-icon' : 'others-icon sedmargin'
            "
          >
            <p>其他登录方式</p>
            <img
              class="we-icon"
              src="./../assets/images/wechat.png"
              alt=""
              @click="getWeChat"
            />
            <img
              class="we-icon"
              src="./../assets/images/qq.png"
              alt=""
              @click="qqLogin"
            />
            <img
              class="we-icon"
              src="./../assets/images/alipay-outlined.png"
              alt=""
              @click="alipayLogin"
            />
          </div>
          <el-button
            v-if="activeName == 'first'"
            type="text"
            style="color: #ddd !important"
            @click="handleBtn"
            >忘记密码</el-button
          >
        </div>
      </div>
      <div class="bind">
        <el-dialog
          title="绑定账号"
          :visible.sync="dialogVisible"
          width="520px"
          class="bindAccout"
        >
          <el-form
            ref="bindForm"
            :model="bindForm"
            :rules="bindRules"
            class="bind-form"
          >
            <el-form-item prop="username" label="账号">
              <el-input
                v-model="bindForm.userName"
                type="text"
                auto-complete="off"
                placeholder="账号"
              >
                <svg-icon
                  slot="prefix"
                  icon-class="user"
                  class="el-input__icon input-icon"
                />
              </el-input>
            </el-form-item>
            <el-form-item prop="password" label="密码">
              <el-input
                v-model="bindForm.passWord"
                type="password"
                auto-complete="off"
                placeholder="密码"
                @keyup.enter.native="handleBind"
              >
                <svg-icon
                  slot="prefix"
                  icon-class="password"
                  class="el-input__icon input-icon"
                />
              </el-input>
            </el-form-item>
            <el-form-item style="width: 60%; margin: 0 auto">
              <el-button
                :bindloading="bindloading"
                size="medium"
                type="primary"
                style="width: 100%"
                @click.native.prevent="handleBind"
                class="loginBtn"
              >
                <span v-if="!bindloading">绑定并登录</span>
                <span v-else>登 录 中...</span>
              </el-button>
            </el-form-item>
          </el-form>
        </el-dialog>
      </div>
    </div>

    <!--  底部  -->
    <div class="el-login-footer"></div>
    <!-- 背景视频 -->
   
  </div>
</template>

<script>
import Cookies from "js-cookie";
import { userLoginLog } from "@/api/log"
import {
  getWechatAuthUrl,
  getQQAuthUrl,
  getAlipayAuthUrl,
  bindThirdAccount,
} from "@/api/login.js";
import { getUrlParam } from "../utils/index";
import { encrypt, decrypt } from "@/utils/jsencrypt";
import MobileLogin from "@/components/MobileLogin/index";
// import WxLogin from "@/components/wxLogin/index"

export default {
  name: "Login",
  components: {
    MobileLogin,
    // WxLogin,
  },
  data() {
    return {
      title: process.env.VUE_APP_TITLE || "后台管理系统",
      activeName: "first",
      isWeixin: false,
      loginForm: {
        username: undefined,
        password: undefined,
        rememberMe: false,
      },
      loginRules: {
        username: [
          {
            required: true,
            trigger: "change",
            message: "请输入您的账号/手机号",
          },
        ],
        password: [
          { required: true, trigger: "change", message: "请输入您的密码" },
        ],
      },
      dialogVisible: false,
      bindForm: {
        userName: "", //'wangdongming'
        passWord: "",
        type: 0,
        unionID: "",
        openID: "",
      },
      bindRules: {
        userName: [
          { required: true, trigger: "blur", message: "请输入您的账号" },
          {
            min: 2,
            max: 15,
            message: "长度在 2 到 15 个字符",
            trigger: "blur",
          },
        ],
        passWord: [
          { required: true, trigger: "blur", message: "请输入您的密码" },
          {
            min: 5,
            max: 15,
            message: "长度在 5 到 15 个字符",
            trigger: "blur",
          },
        ],
      },
      loading: false,
      bindloading: false,
      redirect: undefined,
      msg: "",
      loginLog:{ //用户登录日志
        systemId:3,
        environmentId:1,
        serviceId:13,
        loginType:1,
        username:'',
      }
    };
  },
  watch: {
    $route: {
      handler: function (route) {
        // console.log(route, "33333333");
        this.redirect = route.query && route.query.redirect;
      },
      immediate: true,
    },
  },
  methods: {
    handleClick(tab, event) {
      if (tab.name == "first" || tab.name == "second") {
        this.msg = "";
      }
    },
    //忘记密码
    handleBtn() {
      this.$router.push("/change-password");
    },
    getCookie() {
      const username = Cookies.get("username");
      const password = Cookies.get("password");
      const rememberMe = Cookies.get("rememberMe");
      this.loginForm = {
        username: username === undefined ? this.loginForm.username : username,
        password:
          password === undefined ? this.loginForm.password : decrypt(password),
        rememberMe: rememberMe === undefined ? false : Boolean(rememberMe),
      };
    },
    handleLogin() {
      this.$refs.loginForm.validate((valid) => {
        if (valid) {
          this.loading = true;
          if (this.loginForm.rememberMe) {
            Cookies.set("username", this.loginForm.username, { expires: 30 });
            Cookies.set("password", encrypt(this.loginForm.password), {
              expires: 30,
            });
            Cookies.set("rememberMe", this.loginForm.rememberMe, {
              expires: 30,
            });
          } else {
            Cookies.remove("username");
            Cookies.remove("password");
            Cookies.remove("rememberMe");
          }
          this.$store
            .dispatch("Login", this.loginForm)
            .then((res) => {
              console.log(res, "resresresreslogin");
              if (res.code == 200) {
                this.$router.push({ name: "Index" }).catch((err) => {
                  console.log(err, "err");
                });
                this.loading = false;
              } else {
                this.msg = res.message;
                this.loading = false;
              }
              this.loginLog.loginType = 1;
              this.loginLog.username =  res.result.username;
                console.log(this.loginLog,'this.loginLogthis.loginLog');
                userLoginLog(this.loginLog).then(res=>{
                  console.log(res);
                })
              })
            .catch((error) => {
              this.loading = false;
            });
        }
      });
    },
    // 微信
    getWeChat() {
      let params = {
        redirectUrl: `${location.protocol}//${location.host}/#/sso?type=0`,
      };
      getWechatAuthUrl(params).then((res) => {
        // console.log(res, "weixin");
        if (res.code == 200) {
          window.open(
            res.result,
            "newlogin",
            "width=800,height=600,left=" +
              (window.screen.width - 400) / 2 +
              ",top=200"
          );
        }
      });
    },
    // qq登录
    qqLogin() {
      let params = {
        redirectUrl: `${location.protocol}//${location.host}/#/sso?type=1`,
      };
      getQQAuthUrl(params).then((res) => {
        console.log(res, "33333");
        if (res.code == 200) {
          window.open(
            res.result,
            "newlogin",
            "width=800,height=600,left=" +
              (window.screen.width - 400) / 2 +
              ",top=200"
          );
        }
      });
    },
    alipayLogin() {
      let params = {
        redirectUrl: `${location.protocol}//${location.host}/#/sso?type=2`,
      };
      getAlipayAuthUrl(params).then((res) => {
        console.log(res, "33333");
        if (res.code == 200) {
          window.open(
            res.result,
            "newlogin",
            "width=800,height=670,left=" +
              (window.screen.width - 400) / 2 +
              ",top=200"
          );
        }
      });
    },
    // 绑定
    handleBind() {
      this.$refs.bindForm.validate((valid) => {
        if (valid) {
          this.bindloading = true;
          console.log(this.bindForm,'this.bindFormthis.bindForm');
          // 第三方
          bindThirdAccount(this.bindForm).then((res) => {
            console.log(res, "bind第三方");
            if (res.success) {
              // 绑定成功后调用登录并跳转
              this.$message({
                message: "绑定成功",
                type: "success",
              });
              this.$store
                .dispatch("Login", {
                  username: this.bindForm.userName,
                  password: this.bindForm.passWord,
                })
                .then(() => {
                  // window.location.replace(`${location.protocol}//${location.host}/#/login`);
                  this.$router.push({ name: "Index" });
                });
            } else {
              this.$message({
                message: res.message,
                type: "warning",
              });
            }
            this.bindloading = false;
          });
          if(this.bindForm.type == '1'){
            this.loginLog.loginType = 4;
            this.loginLog.username =  this.bindForm.userName
;
            console.log(this.loginLog,'this.loginLogthis.loginLog');
            userLoginLog(this.loginLog).then(res=>{
              console.log(res,'手机登录');
            })
          }else if(this.bindForm.type == '2'){
            this.loginLog.loginType = 5;
            this.loginLog.username =  this.bindForm.userName;
            console.log(this.loginLog,'this.loginLogthis.loginLog');
            userLoginLog(this.loginLog).then(res=>{
              console.log(res,'手机登录');
            })
          }else if(this.bindForm.type == '0'){
            this.loginLog.loginType = 3;
            this.loginLog.username =  this.bindForm.userName;
            console.log(this.loginLog,'this.loginLogthis.loginLog');
            userLoginLog(this.loginLog).then(res=>{
              console.log(res,'手机登录');
            })
          }
        }
      });
    },
  },
  created() {
    this.getCookie();
    let site = process.env.VUE_APP_BASE_URL.split('/')[2]
    if(site == 'out.bj.51db.com:36101'){
      this.loginLog.environmentId = 1
    }else if(site == 'out.bj.51db.com:36201'){
      this.loginLog.environmentId = 2
    }else if(site == 'srm.b1b.cn:36301'){
      this.loginLog.environmentId = 4
    }
    // 微信跳转过来
    console.log(document.body.clientWidth);
    console.log(getUrlParam("type"), "getUrlParam()");
    console.log(getUrlParam("openID"), "getUrlParam(wwwwww)");
    if (getUrlParam("bind") && getUrlParam("openID")) {
      console.log("微信是否跳转");
      this.bindForm.type = getUrlParam("type");
      this.bindForm.openID = getUrlParam("openID");
      this.bindForm.unionID = getUrlParam("unionID");
      window.location.replace(`${location.protocol}//${location.host}/#/login`);
      this.dialogVisible = true;
    } else if (getUrlParam("code") && getUrlParam("type")) {
      this.bindForm.type = getUrlParam("type") * 1;
      this.bindForm.openID = getUrlParam("openID");
      // console.log(`${location.protocol}//${location.host}/#/login`);
      // window.location.replace(`${location.protocol}//${location.host}/#/login`);
      this.dialogVisible = true;
    } else if (getUrlParam("error")) {
      this.$message({ message: getUrlParam("error"), type: "warning" });
      window.location.replace(`${location.protocol}//${location.host}/#/login`);
    }
  },
};
</script>

<style lang="scss" scoped>
@media screen and (max-width: 500px) {
  .login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0074FF 0%, rgba(125,195,255,0.59) 46%, rgba(255,255,255,0.27) 74%, rgba(255,255,255,0) 100%);
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 360px;
    padding: 30px 0 40px;
    box-sizing: border-box;
    margin: 0  0 0 0;
  } 
}
@media screen and (min-width: 800px) and (max-width: 900px) {
  .login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    // height: 100%;

    background-image: url("./../assets/images/login-bg.png");
    background-size: cover;
    background-position:center;
    background-repeat: no-repeat;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 41%;
    padding: 2.5% 2.2% 2.6%;
    box-sizing: border-box;
    margin: 0 1% 0 0;
  } 
}
@media screen and(min-width: 501px)and (max-width: 800px){
  .login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size:cover;
    background-position:top !important;
    background-repeat: no-repeat;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 38% !important;
    padding: 2.5% 2.2% 2.6%;
    box-sizing: border-box;
    margin: 0  3% 0 0 !important;
}
.login-form {
  border-radius: 6px;
  background: #ffffff;
  ::v-deep.el-input--medium .el-input__inner {
    height: 32px !important;
    padding-left: 50px !important;
  }
  .code-input {
    width: 57%;
  }
  .input-icon {
    height: 32px !important;
    width: 14px !important;
    margin-left: 2px;
  }
  .userbox{
    line-height: 7px !important;
  }
}
}
@media screen and(min-height: 500px)and (max-height: 600px){
  .login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size:cover;
    background-position:top !important;
    background-repeat: no-repeat;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 30%;
    padding: 2.5% 2.2% 2.6%;
    box-sizing: border-box;
    margin: 0  10% 0 0 !important;
}
}
@media screen and (min-width: 900px) and (max-width: 1280px)  {
  .login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size: cover;
    background-position:top ;
    background-repeat: no-repeat;
  }

.login-con {
  border-radius: 6px;
  background: #ffffff;
  width: 30%;
  padding: 2.5% 2.2% 2.6%;
  box-sizing: border-box;
  margin: -11%  8% 0 0;
}
.title {
  margin: 0px auto 30px auto;
  text-align: center;
  color: #707070;
}

.login-form {
  border-radius: 6px;
  background: #ffffff;
  ::v-deep.el-input--medium .el-input__inner {
    height: 48px;
    padding-left: 90px !important;
    margin-bottom: 20px;
  }
  .code-input {
    width: 57%;
  }
  .input-icon {
    height: 48px;
    width: 14px;
    margin-left: 2px;
  }
}
.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}
.login-code {
  width: 33%;
  height: 38px;
  float: right;
  img {
    cursor: pointer;
    vertical-align: middle;
  }
}
.el-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}
}
@media screen and (min-width: 1280px) and (max-width: 1441px) {
  .login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 25%;
    padding: 1% 1.5% 3%;
    box-sizing: border-box;
    margin:-15% 10% 0 0;
  }
}
@media screen and (min-width: 1441px) and (max-width: 1920px) {
  .login {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 7%;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .login-tit {
    font-weight: 900;
    color: #ffffff;
    line-height: 70px;
    font-size: 40px;
  }
  .el-form-item__content {
    display: flex;
  }
  .sys-tit {
    font-size: 50px;
    font-weight: 400;
    line-height: 70px;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 380px;
    padding: 1% 0 3%;
    box-sizing: border-box;
    // margin:-16% 0 0;
  }
  .title {
    margin: 0px auto 1.2% auto;
    text-align: center;
    color: #707070;
  }

  .login-form {
    border-radius: 6px;
    background: #ffffff;
    ::v-deep.el-input--medium .el-input__inner {
      height: 48px;
      padding-left: 90px !important;
    }
    .code-input {
      width: 57%;
    }
    .input-icon {
      height: 48px;
      width: 14px;
      margin-left: 2px;
    }
  }
  .login-tip {
    font-size: 13px;
    text-align: center;
    color: #bfbfbf;
  }
  .login-code {
    width: 33%;
    height: 38px;
    float: right;
    img {
      cursor: pointer;
      vertical-align: middle;
    }
  }
  .el-login-footer {
    height: 40px;
    line-height: 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
  }
}
@media screen and  (min-width: 1920px){
  .login {
    display: flex;
    justify-content: space-around;
    align-items:flex-start;
    padding-top: 7%;
    width: 100%;
    height: 100%;
    background-image: url("./../assets/images/login-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .login-tit {
    font-weight: 900;
    color: #ffffff;
    line-height: 70px;
    font-size: 40px;
  }
  .login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 380px;
    padding: 1% 0 3%;
    box-sizing: border-box;
    // margin:-16% 0 0;
    ::v-deep.el-tabs__content{
      margin:0 30px;
    }
    ::v-deep #tab-first{
      border-right: 1px solid #EEEEEE;
    }
  }
}
.login-con {
    border-radius: 6px;
    background: #ffffff;
    width: 380px;
    padding: 1% 0 3%;
    box-sizing: border-box;
    // margin:-16% 0 0;
    ::v-deep.el-tabs__content{
      margin:0 30px;
    }
    ::v-deep #tab-first{
      border-right: 1px solid #EEEEEE;
    }
  }

.login-tit {
  font-weight: 900;
  color: #ffffff;
  line-height: 70px;
  font-size: 40px;
}
.el-form-item--small.el-form-item{
  margin-bottom: 20px !important;
}
.el-form-item__content {
  display: flex;
}
.sys-tit {
  font-size: 50px;
  font-weight: 400;
  line-height: 70px;
}

.title {
  margin: 0px auto 30px auto;
  text-align: center;
  color: #707070;
}

.login-form {
  border-radius: 6px;
  background: #ffffff;
  ::v-deep.el-input--medium .el-input__inner {
    height: 48px;
    // margin-bottom: 20px;
    padding-left: 90px !important;
  }
  .code-input {
    width: 57%;
  }
  .input-icon {
    height: 48px;
    width: 14px;
    margin-left: 2px;
  }
}
.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}
.login-code {
  width: 33%;
  height: 38px;
  float: right;
  img {
    cursor: pointer;
    vertical-align: middle;
  }
}
.el-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}
.videoContainer {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -100;
}
.videoContainer:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  top: 0;
  left: 0;
  background-image: url("./../assets/images/square.png");
  background-size: 100% 100%;
}
.fullscreenVideo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}
.el-tabs__item {
  font-size: 16px !important;
  font-weight: 400;
  color: #777777;
}
::v-deep .el-tabs__nav {
  width: 100%;
  // margin-left: 16%;
}
.el-tabs__nav-wrap {
  margin-bottom: 28px;
}
.el-tabs__item.is-active {
  font-weight: 600;
  color: #333333;
}
.el-tabs__active-bar {
  background-color: #333333;
}
.el-tabs__item:hover {
  color: #333333;
  font-weight: 600;
  cursor: pointer;
}
.el-input__prefix {
  left: 15px;
  top: -5px;
  .el-input__inner {
    padding-left: 75px;
  }
}
.bindAccout {
  ::v-deep .el-input__prefix {
    top: -9px !important;
  }
}
.userbox {
  display: flex;
  align-items: center;
  color: #000;
  line-height: 20px;
  color: #333;
}
.user-icon {
  width: 16px;
  height: 16px;
  display: block;
  margin-right: 10px;
}
.el-input-group__append,
.el-input-group__prepend {
  background-color: #fff;
  font-weight: 400;
  color: #333333;
  padding: 0px 10px;
}
.el-checkbox__inner {
  border-radius: 18px !important;
}
.loginBtn {
  .el-button--primary:hover,
  .el-button--primary:focus {
    background-color: #008fff;
    border-color: #008fff;
  }
  .el-button--primary {
    background-color: #008fff;
    border-color: #008fff;
    font-size: 16px;
    line-height: 22px;
    padding: 13px 20px;
  }
}
.wexin-con {
  .el-divider--horizontal {
    margin: 0 0 30px;
  }
}
.wexin-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 16px;
  color: #333333;
  cursor: pointer;
  .accout {
    font-weight: 400;
    color: #999999;
    &:hover {
      color: #333333;
    }
  }
}
.others {
  // margin-top: 65px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  justify-content: space-between;
  .btn:hover {
    color: #1890ff !important;
  }
  
  .others-icon {
    display: flex;
    // justify-content: center;
    align-items: center;
    p {
      font-size: 16px;
      font-weight: 400;
      color: #777777;
      margin-right:10px;
    }
    img {
      width: 24px;
      height: 24px;
      display: block;
      margin-right: 10px;
      cursor: pointer;
      &:nth-child(4) {
        margin-right: 0;
      }
     
    }
  }
  .sedmargin {
    margin-bottom: 52px;
  }
}
.bind-form {
  border-radius: 6px;
  background: #ffffff;
  padding: 30px;
  .el-input {
    height: 38px;
    input {
      height: 38px;
    }
  }
  .input-icon {
    height: 51px;
    width: 14px;
    display: block;
    margin-left: 2px;
    // margin-right: 20px;
  }
  .el-input__inner {
    padding-left: 40px;
  }
}
.el-divider__text {
  color: #cccccc;
}
.code-from {
  margin-bottom: 40px;
}
.el-input__prefix {
  top: -7px;
}
.el-checkbox__input.is-checked .el-checkbox__inner{
  /* background-color: #fff !important; */
  color: #2348e8 !important;
  border-color: #2348e8 !important;
  border-radius: 6px;
}
.el-checkbox__inner{
  border-radius: 6px !important;
}
::v-deep .el-tabs__item{
  margin: 10px 0;
  font-size: 16px !important;
  color: #777777;
  width: 50%;
  height: 22px;
  line-height: 22px;
  text-align: center;
  // padding-left: 40px !important;
}
::v-deep .el-tabs__item.is-active{
  color: #333333 !important;
  font-weight: 600;
}
::v-deep .el-tabs__item:hover{
  // font-weight: 500;
  color: #333333 !important;
}
::v-deep .el-tabs__active-bar{
  background-color:#333333 !important;
  border:1px solid;
  width: 96px !important;
  margin-left: 33px;
  // text-align: center;
}
::v-deep .el-tabs__header{
  margin:0 0 20px;
}
::v-deep .el-input__prefix{
  left: 20px !important;
}
::v-deep .el-form_error{
  font-size: 12px;
  font-weight: 400;
  color: #E02020;
  line-height: 17px;
  margin-left: 40px;
  // margin-bottom:20px !important;
}

::v-deep .el-checkbox__inner {
  border-radius: 18px !important;
}
</style>
